package com.example.day05;

public class MathTest {
    public static void main(String[] args) {
        System.out.println(Math.E);
        System.out.println(Math.PI);

        System.out.println(Math.abs(-2.71828));
        System.out.println(Math.round(2.41828));
        System.out.println(Math.floor(2.99999));
        System.out.println(Math.ceil(2.000001));

        System.out.println(Math.pow(2, 10));

        System.out.println(Math.random()); // [0, 1)
        // [0, 42)

        System.out.println((int)(Math.random() * 42));

    }
}